
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="box">

    </div>
</body>

</html>
<script src="./axios.js"></script>
<script>
    console.log(location.search.split("=")[1]);
    var id = location.search.split("=")[1];
    var oBox = document.querySelector("#box")
    axios({
        method: "get",
        url: "http://localhost:8888/goods/item",
        params: {
            id: id * 1
        }
    }).then(res => {
       console.log(res);
       
        
    })
</script>